package com.loong.shop.mq;

import com.loong.common.rabbitmq.tools.RabbitmqTools;
import com.loong.global.enums.mq.QueueEnums;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.DependsOn;

import javax.annotation.PostConstruct;
import javax.annotation.Resource;

/**
 * @Description:
 * @Author: LiuQun
 * @Date: 2020-12-5 09:32
 */
@Slf4j
@Configuration("goodsBrandMqConfiguration")
@DependsOn(value = {"rabbitmqDefaultConfiguration"})
public class GoodsBrandMqConfiguration {


    @Resource
    private RabbitmqTools rabbitmqTools;

    /**
     * 初始化Queue
     */
    @PostConstruct
    public void initQueue() {
        rabbitmqTools.initQueue(QueueEnums.GOODS_BRAND_REPORT);
    }
}
